package io.coderyeah.ymcc.service;

import io.coderyeah.ymcc.constant.MQConstants;
import io.coderyeah.ymcc.domain.PayFlow;
import io.coderyeah.ymcc.domain.PayOrder;
import com.baomidou.mybatisplus.service.IService;
import org.apache.rocketmq.spring.annotation.MessageModel;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.springframework.stereotype.Component;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author coderyeah
 * @since 2022-11-04
 */
public interface IPayOrderService extends IService<PayOrder> {

    PayOrder getByOrderSn(String orderNo);

    void updateCourseOrderAndPayFlow(PayOrder payOrder, PayFlow payFlow);

    void cancelOrder(String orderSn);

}
